package com.slw.emergency.service;

import com.slw.emergency.entity.EmergencyVillage;
import com.slw.emergency.model.RespCityDistanceModel;
import com.slw.emergency.model.RespCityModel;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 *  查询相关service
 */
public interface QueryService {

    List<RespCityModel> getDetailByCity(String province,String city);
    List<RespCityDistanceModel> getDistanceByCity(String province, String city, double lon, double lat);
    List<RespCityModel> getDetailByCellName(String cellName,String city);
    /**
     * 插入数据
     */
    public void insertDetail(boolean isUpdate);

//    /**
//     * 插入或者更新数据
//     * @param request
//     */
//    void saveOrUpdateDetail();
    public void countVisit(HttpServletRequest request);

    /**
     * 更新疫情数据
     */
    public void insertEpidemic();

    /**
     * 获取时空数据
     * @return
     */
    public Map<String,Object> getSpaceChange();

    /**
     * 获取village数据
     * @return
     */
    public Map<String, Object> getVillage();

}
